/***
 * @desc 使用导出方式1时 必须在组件挂载时执行initExportForJquery挂载导出方法 ！！！！！！！！！
 * @desc 推荐使用方式1 方式2需要完善
 */
import React from 'react';
import darkBlue from '@/src/assets/comps/other/firstHeader/title_icon_darkBlue.png';
import { FirstHeaderC, TabC, PrimaryC } from '@/src/comps';
import { exportWord } from '@/src/utils/exportWordFileModule/htmlToWord';
import ExportDemo from './ExportDemo';
import ExportWayTwo from './ExportWordTwo';
export default class ExportWord extends React.Component {
  state = {
    tabType1: '1',
  };

  render() {
    return (
      <>
        <FirstHeaderC title='导出Word' bottomHeight={false} topHeight={true} />
        <TabC
          type='secondTab'
          tabSource={[
            { title: '导出元素demo', key: '1', content: <ExportDemo /> },
            { title: '绩效分析demo', key: '2', content: <ExportWayTwo /> },
          ]}
          activeKey={this.state.tabType1}
          onChange={(key) => {
            this.setState({
              tabType1: key,
            });
          }}
        />
      </>
    );
  }
}
